package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.AttendanceStatusExample.E_COMPANY_ID;
import static org.jsola.hr.example.AttendanceStatusExample.E_DATE;
import static org.jsola.hr.example.AttendanceStatusExample.E_DEDUCTION;
import static org.jsola.hr.example.AttendanceStatusExample.E_EMP_ID;
import static org.jsola.hr.example.AttendanceStatusExample.E_MINUTES;
import static org.jsola.hr.example.AttendanceStatusExample.E_NUMBER;
import static org.jsola.hr.example.AttendanceStatusExample.E_RECORD_ID;
import static org.jsola.hr.example.AttendanceStatusExample.E_REMARK;
import static org.jsola.hr.example.AttendanceStatusExample.E_STATUS;
import static org.jsola.hr.example.AttendanceStatusExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.AttendanceStatusExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.AttendanceStatusExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.AttendanceStatusExample.M_NUMBER_MAX;
import static org.jsola.hr.example.AttendanceStatusExample.M_RECORD_ID_MAX;
import static org.jsola.hr.example.AttendanceStatusExample.M_REMARK_MAX;
import static org.jsola.hr.example.AttendanceStatusExample.N_COMPANY_ID;
import static org.jsola.hr.example.AttendanceStatusExample.N_DATE;
import static org.jsola.hr.example.AttendanceStatusExample.N_DEDUCTION;
import static org.jsola.hr.example.AttendanceStatusExample.N_EMP_ID;
import static org.jsola.hr.example.AttendanceStatusExample.N_MINUTES;
import static org.jsola.hr.example.AttendanceStatusExample.N_NUMBER;
import static org.jsola.hr.example.AttendanceStatusExample.N_RECORD_ID;
import static org.jsola.hr.example.AttendanceStatusExample.N_REMARK;
import static org.jsola.hr.example.AttendanceStatusExample.N_STATUS;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【员工考勤状态】的参数")
@Data
public class AttendanceStatusUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_RECORD_ID, example = E_RECORD_ID)
    @Length(max = 32, message = M_RECORD_ID_MAX)
    private String recordId;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_NUMBER, example = E_NUMBER)
    @Length(max = 32, message = M_NUMBER_MAX)
    private String number;

    @ApiModelProperty(notes = N_DATE, example = E_DATE)
    private Date date;

    @ApiModelProperty(notes = N_STATUS, example = E_STATUS)
    private Integer status;

    @ApiModelProperty(notes = N_MINUTES, example = E_MINUTES)
    private Integer minutes;

    @ApiModelProperty(notes = N_DEDUCTION, example = E_DEDUCTION)
    private Integer deduction;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 255, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;


}

